/**
 * Created by Reeves on 2017/4/18.
 */
Template.starPosts.helpers({
    posts: function () {
        return Posts.find({}, {sort: {submitted: -1}});
    }
});

Template.starPosts.events({
    'click .filter a': function (e, template) {
        var filterClass = $(e.target).attr('class');

        Router.go('/my/starPosts/' + filterClass);
    }
});